import {defineConfig} from 'vite'
import {createVuePlugin} from 'vite-plugin-vue2'
import AutoImport from "unplugin-auto-import/vite";
import * as path from "path";
const pathSrc = path.resolve(__dirname, './src')
// https://vitejs.dev/config/
export default defineConfig({
    server: {
        host: '0.0.0.0',
        proxy: {
            "/api": {
                target: "http://192.168.1.55:9370",
                changeOrigin: true,
            },
        }
    },
    plugins: [
        createVuePlugin( /*options*/),
        AutoImport({
            imports: [
                {
                    "lodash": [
                        ["*", "_"]
                    ]
                }
            ]
        })
    ],
    resolve: {
        alias: {
            "@": pathSrc,
        }
    },

})
